Micron Document
🌎 rns.kin.earth git 🌍

Node / dev / reticulum / commits / bbf79e1

Commit bbf79e1133eda77b0fbaba3504857f1f346ef841


Parents : 343f439
Author : Mark Qvist <mark@adepta.io>
Date : 2020-05-14T16:22:49+02:00

Updated link example

Changes

1 files changed, 4 insertions(+), 1 deletions(-)


Diff

diff --git a/Examples/Link.py b/Examples/Link.py
index a1ef7ac5..98004060 100644
--- a/Examples/Link.py
+++ b/Examples/Link.py
@@ -75,10 +75,13 @@ def client_disconnected(link):
def server_packet_received(message, packet):
global latest_client_link
+ # When data is received over any active link,
+ # it will all be directed to the last client
+ # that connected.
text = message.decode("utf-8")
RNS.log("Received data on the link: "+text)
- reply_text = "I got \""+text+"\" from you"
+ reply_text = "I received \""+text+"\" over the link"
reply_data = reply_text.encode("utf-8")
RNS.Packet(latest_client_link, reply_data).send()

Served by rngit 1.5.2 - Generated in 0.03s